package com.example.service;

import com.example.pojo.AdminArticle;
import com.example.pojo.Article;
import com.example.pojo.ArticleList;
import com.example.pojo.PageBean;
import com.example.pojo.admin.SearchBean;

import java.util.List;

/**
 * @Description TODO
 * @Author fantasy
 * @Date 2024/7/4 21:54
 **/


public interface ArticleService {
    void add(Article article);

    PageBean<ArticleList> list(Integer pageNum, Integer pageSize, Integer categoryId, String state);

    List<ArticleList> getList(Integer categoryId, String state, Integer userId);

    AdminArticle getArticleById(Integer id);

    void delete(Integer id);

    List<AdminArticle> getAllList();

    void revoke(Integer id);

    List<AdminArticle> getLikeList(SearchBean searchBean);
}
